package hxy.dragon.groovy.controller

import hxy.dragon.groovy.service.UserService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class UserController {
    @Autowired
    UserService userService
    
    @GetMapping("/user")
    String hello() {
//        不需要return下面直接返回值
        userService.add()
    }
}
